package cordoba.domain
{
    import flash.events.Event;
    import flash.events.EventDispatcher;
    
    import mx.collections.ArrayCollection;

    public class Processes extends AbstractItems
    {
        public function filterBy(processIds:Array):void {
            var filterFunction:Function =  function (process:Process):Boolean {
                if (processIds == null) {
                    return true;
                }
                return (processIds.indexOf(process.idProcess) != -1);
            };
            items.filterFunction = filterFunction;
            items.refresh();
        }
    }
}